﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using ProtoBuf;
namespace PnJ.Aliyun.OTS.Models
{
    /// <summary>
    /// 
    /// </summary>
    [ProtoContract(Name = "TableInBatchGetRowRequest")]
    public class TableInBatchGetRowRequest
    {
        public TableInBatchGetRowRequest()
        {

        }
        public TableInBatchGetRowRequest(string tableName)
        {
            this.TableName = tableName;
        }
        private List<string> columnsToGet = new List<string>();
        private List<RowInBatchGetRowRequest> rows = new List<RowInBatchGetRowRequest>();
        /// <summary>
        /// 该表的表名
        /// </summary>
        [ProtoMember(1, Name = "table_name", IsRequired = true)]
        public string TableName { get; set; }
        /// <summary>
        /// 该表中需要读取的全部行的信息
        /// </summary>
        [ProtoMember(2, Name = "rows")]
        public List<RowInBatchGetRowRequest> Rows { get { return rows; } set { rows = value; } }
        /// <summary>
        /// 该表中需要返回的全部列的列名
        /// </summary>
        [ProtoMember(3, Name = "columns_to_get")]
        public List<string> ColumnsToGet { get { return columnsToGet; } set { columnsToGet = value; } }

    }
}
